import React from "react";

const sideWindowHOC = (SideWindow, selectData) => {
    return class extends React.Component {
        constructor(props) {
            super(props);
            this.state = {
                data: selectData(props)
            };
        }
        componentDidMount() {
            // console.log(this.ballWindow)
        }
        render() {
            return <SideWindow data={this.state.data} {...this.props} />
        }
    }
}
export default sideWindowHOC